package com.mark.springboot.config; /**
 * @Author: GavinCoder
 * @Date: 2020/9/10 09:45
 */

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventListener;

/**
 * **********************************************************
 *
 * @Project:
 * @Author : Gavincoder
 * @Mail : xunyegege@gmail.com
 * @Github : https://github.com/xunyegege
 * @ver : version 1.0
 * @Date : 2020-09-10 09:45
 * @description:
 ************************************************************/
@Configuration
public class StartGenerate {
    @EventListener({ApplicationReadyEvent.class})
    void applicationReadyEvent() {
        String url = "http://localhost:8888/generate";
        System.out.println("应用已经准备就绪 ... 请启动浏览器，访问"+url);
    }
}
